﻿import request from '/@/utils/request';
enum Api {
  AddClassify = '/api/classify/add',
  DeleteClassify = '/api/classify/delete',
  UpdateClassify = '/api/classify/update',
  PageClassify = '/api/classify/page',
  DetailClassify = '/api/classify/detail',
}

// 增加信息发布
export const addClassify = (params?: any) =>
	request({
		url: Api.AddClassify,
		method: 'post',
		data: params,
	});

// 删除信息发布
export const deleteClassify = (params?: any) => 
	request({
			url: Api.DeleteClassify,
			method: 'post',
			data: params,
		});

// 编辑信息发布
export const updateClassify = (params?: any) => 
	request({
			url: Api.UpdateClassify,
			method: 'post',
			data: params,
		});

// 分页查询信息发布
export const pageClassify = (params?: any) => 
	request({
			url: Api.PageClassify,
			method: 'post',
			data: params,
		});

// 详情信息发布
export const detailClassify = (id: any) => 
	request({
			url: Api.DetailClassify,
			method: 'get',
			data: { id },
		});


